<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Articlecategory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-articlecategory_id" data-rule="required" data-source="cms/articlecategory/index" class="form-control selectpage" data-select-only="true" name="row[articlecategory_id]" type="text" value="{$row.articlecategory_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id"  class="form-control" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Clickrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-clickrate" data-rule="required" class="form-control" name="row[clickrate]" type="text" value="{$row.clickrate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commentrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commentrate" data-rule="required" class="form-control" name="row[commentrate]" type="text" value="{$row.commentrate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goodrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goodrate" data-rule="required" class="form-control" name="row[goodrate]" type="text" value="{$row.goodrate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Key_word')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-key_word" data-rule="required" class="form-control" name="row[key_word]" type="text" value="{$row.key_word}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Maincontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-maincontent" data-rule="required" class="form-control editor" rows="5" name="row[maincontent]" cols="50">{$row.maincontent}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-source" data-rule="required" class="form-control" name="row[source]" type="text" value="{$row.source}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Smallimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-smallimage" data-rule="required" class="form-control" size="50" name="row[smallimage]" type="text" value="{$row.smallimage}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-smallimage" class="btn btn-danger plupload" data-input-id="c-smallimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-smallimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-smallimage" class="btn btn-primary fachoose" data-input-id="c-smallimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-smallimage"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-smallimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Publishstatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="publishstatusList" item="vo"}
            <label for="row[publishstatus]-{$key}"><input id="row[publishstatus]-{$key}" name="row[publishstatus]" type="radio" value="{$key}" {in name="key" value="$row.publishstatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Set_topstatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="setTopstatusList" item="vo"}
            <label for="row[set_topstatus]-{$key}"><input id="row[set_topstatus]-{$key}" name="row[set_topstatus]" type="radio" value="{$key}" {in name="key" value="$row.set_topstatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommendstatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="recommendstatusList" item="vo"}
            <label for="row[recommendstatus]-{$key}"><input id="row[recommendstatus]-{$key}" name="row[recommendstatus]" type="radio" value="{$key}" {in name="key" value="$row.recommendstatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commentstatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="commentstatusList" item="vo"}
            <label for="row[commentstatus]-{$key}"><input id="row[commentstatus]-{$key}" name="row[commentstatus]" type="radio" value="{$key}" {in name="key" value="$row.commentstatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deletestatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="deletestatusList" item="vo"}
            <label for="row[deletestatus]-{$key}"><input id="row[deletestatus]-{$key}" name="row[deletestatus]" type="radio" value="{$key}" {in name="key" value="$row.deletestatus"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Published_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-published_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[published_time]" type="text" value="{$row.published_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delete_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delete_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delete_time]" type="text" value="{$row.delete_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
